package simorg.actions.enrollment;

import simorg.domain.Course;
import simorg.domain.User;

public class EnrollmentNotification {
	User user;
	Course course;
	boolean newUser;
	
	public EnrollmentNotification(boolean newUser, User user, Course course) {
		this.user = user;
		this.course = course;
		this.newUser = newUser;
	}
	public void sendNotification() {
		
	}
	private String getSubject() {
		return "SimOrg - " + course.getName() + " enrollment";
	}
	private String getBody() {
		String retval = "You have been added to " + course.getName() + " within the SimOrg system\n";
		if ( newUser ) {
			retval += "An account has been created for you\nYour username is:  " + 
				user.getUsername() + "\nYour password is " + user.getPassword();
		}
		return retval;
	}
}
